//
//  TestDetailTableViewCell.m
//  Koizora
//
//  Created by dlios on 15-6-12.
//  Copyright (c) 2015年 CupCat. All rights reserved.
//

#import "TestDetailTableViewCell.h"

@implementation TestDetailTableViewCell

- (void)awakeFromNib {
    // Initialization code
}

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if(self) {
        
        self.optionNum = [[UILabel alloc] init];
//        _optionNum.backgroundColor = [UIColor yellowColor];
        [self addSubview:_optionNum];
        
        self.optionContent = [[UILabel alloc] init];
//        _optionContent.backgroundColor = [UIColor greenColor];
        [self addSubview:_optionContent];
        
        
    }
    return self;
}

- (void)layoutSubviews
{
    [super layoutSubviews];
    
    _optionNum.frame = CGRectMake(10, 10, 30, 30);
    _optionContent.frame = CGRectMake(_optionNum.frame.origin.x + _optionNum.frame.size.width + 10, 10, self.frame.size.width - _optionNum.frame.size.width - _optionNum.frame.origin.x - 10, 30);
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
